package com.d0323hw;

import java.util.Scanner;

public class NumberTest {
    public static void main(String[] args) {
        Scanner sca = new Scanner(System.in);
        System.out.println("请输入一个数字字符串！");
        String str=sca.nextLine();
        int count1=0;
        int count2=0;
        for(int i=0;i<str.length();i++) {
            if(str.charAt(i)%2==0) {
                count1++;
            }else {
                count2++;
            }
        }
        System.out.println("有"+count1+"个偶数！"+"有"+count2+"个奇数！");
    }

}
